<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>index</title>
</head>
<body>
    <input type="button" onclick="exportPdf('/export')" value="导出pdf">
</body>
<script>
    function exportPdf(url) {
        window.location.href=url;
    }

</script>
</html>